import React, { Component } from 'react';
import { Route, Switch } from 'react-router-dom';
import './App.css';
import Login from './containers/login';
import MainContent from './containers/mainContent';
// var Mock = require('mockjs');


class App extends Component {
     
    componentDidMount() {
        
    }

    componentWillUnMount() {

    }
    
    render() { 
        return (
            <div className="App">
                <Switch>
                    <Route exact path="/" component={Login}/>
                    <Route path="/main" component={MainContent}/>
                </Switch>
            </div>
        );
    }
}

export default App;
